package com.mtsmda.chapter2.overridingEx;

import java.io.IOException;

import javax.swing.text.ChangedCharSetException;

public class Oak extends Tree {

	@Override
	public void showLeaves() {
		System.out.println("Oak");
	}

	public void showLeaves(double d) {
		System.out.println("Oak " + d);
	}

	public Oak getTree() {
		return new Oak();
	}

	public void threeException() throws ChangedCharSetException {
		// scjp page 153
	}

	public void threeException(String name) throws IOException {
		// scjp page 153
	}

	protected void getA(String a){
		System.out.println("getA()" + a);
	}
}